package server.core;

import java.net.URL;
import java.net.URLClassLoader;

public class TomcatClassLoader extends URLClassLoader {

    public TomcatClassLoader(URL[] urls) throws Exception {
        super(urls, null);
    }

    @Override
    public Class<?> loadClass(String name) throws ClassNotFoundException {
        try {
            return super.findClass(name);
        } catch (Exception e) {
            return getSystemClassLoader().loadClass(name);
        }
    }
}
